package com.qfedu.zy.dao;


import com.alibaba.druid.pool.DruidDataSource;
import com.qfedu.zy.services.impl.IUserServiceImpl;
import com.qfedu.zy.services.impl.iItemServiceImpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"classpath:spring-context.xml",
        "classpath:spring-context-druid.xml",
        "classpath:spring-context-mybatis.xml",
        "classpath:spring-context-mvc.xml",
        "classpath:spring-context-redis.xml",
        "classpath:spring-context-tx.xml"})
public class item {
    @Autowired
    private ItemDAO itemDAO;

    @Autowired
    private iItemServiceImpl iItemService;

    @Test
    public void test(){
        System.out.println(itemDAO.listItem());
    }

    @Test
    public void test1(){
        System.out.println(iItemService.query());
    }

}
